<#include "/WEB-INF/view/inc/inc.html"/>

<@html qmask=0>
<div class="container">
    <div class="row">
        <div class="col-xs-10 col-sm-9 col-md-9 col-lg-9">
            <div class="jumbotron">
                <h2>框架公用标签</h2>
                <h4>1.@html qmask 使用 0 本地 </h4>
                <h4>2.@head</h4>
                <h4>3.@js @jsfile</h4>
                <h4>4.@uikoo9 捐助 关于我</h4>
                <h4>5.@bsbody style='' class='' qmask=2 head=true foot=true </h4>
                <h4>5.@bsfoot </h4>
            </div>
            <h2>组件</h2>
            <h4 id="bsmenu" >菜单</h4>
            <@bsmenu menus=mymenus/>
            <pre><code class="language-html" data-lang="html">@bsmenu menus=mymenus</code></pre>

            <h4 id="bslun">图片轮播</h4>
            <@bsicon icon='chevron-down' />
            <@bsicon icon='user' />
<a href="http://v2.bootcss.com/base-css.html#buttons">http://v2.bootcss.com/base-css.html#buttons</a>
            <@bslun mypics/>
            <pre><code class="language-html" data-lang="html">@bslun pics=mypics</code></pre>

            <div class="clearfix">
                <h4 id="bsnail">略缩图</h4>
                <@bsnail href='/y/demo' title='nail' src='http://uikoo9.qiniudn.com/@/img/bg/bg1.jpg'/>
                <@bsnail href='/y/demo' title='nail' src='/WUI/web/jobtime.jpg'/>
                <pre><code class="language-html" data-lang="html">@bsnail href='/y/demo' title='nail' data='holder.js/100%x120/gray/text:bootstrapQ'</code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bsbutton">按钮</h4>
                <@bsbutton size='xs' icon='pencil' class='editbtn'/>
            <pre><code class="language-html" data-lang="html">@bsbutton size='xs' icon='pencil' class='editbtn'</code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bsinput">自动填充框</h4>
                <@bsinput title='团队' name='row.blog_type_name' id='blog_type_name' value=''/>
                <@bsinput title='用户' name='row.cuser' id='yuser' value=''/>
                <pre><code class="language-html" data-lang="html">@bsinput title='类型名称' name='blog_type_name' value='hello'</code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bsicon">icon</h4>
                <@bsicon icon='th-list' />
                <pre><code class="language-html" data-lang="html">@bsicon icon='th-list' </code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bspro">bspro</h4>
                <@bspro rate='35' />
                <pre><code class="language-html" data-lang="html">@bspro rate='35' </code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bsalert">bsalert</h4>
                <@bsalert type='info' >hello</@bsalert>
                <a href="javascript:void(0);" onclick="qiao.bs.alert('可以移动哦');">点我啊</a>
                <pre><code class="language-html" data-lang="html">@bsalert type='info' </code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bsul">bsul</h4>
                <@bsul lis=listmyul />
                <pre><code class="language-html" data-lang="html">@bsul lis=listmyul </code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bspanel">bspanel</h4>
                <@bspanel title='myspanel' id='pid' />
                <pre><code class="language-html" data-lang="html">bspanel title='myspanel' id='pid'  </code></pre>
            </div>
            <div class="clearfix">
                <h4 id="bdshare">bdshare</h4>
                <@bdshare times=5 />
                <pre><code class="language-html" data-lang="html">bdshare times=5  </code></pre>
            </div>
            <div class="clearfix">
                <pre><code class="language-html" data-lang="html">@backtotop
@bslist -- crud
@bspage
@bsselects
@bsradios
@bsform
@bstree,@bssubtree
@bstable,@bsrow
</code></pre>
            </div>
        <div class="clearfix">
            <h4 id="curd">curd:ul</h4>

            <pre><code class="language-html" data-lang="html"> <b>java:</b>
List《YIdeaModel》 list = YIdeaModel.dao.find("select * from t_y_idea where y_project_id = ?",getParaToInt(0));
List《Map》 listmyul = new ArrayList《Map》();
setAttr("listmyul", listmyul);
<b>html:</b>
@bsuls lis=listmyul icons='ok,th-list,eye-open,retweet,remove'
<b>js:</b>
//双击编辑
$('ul>li').kq_dbclickedit(function(editid){
var editval=$("#"+editid).val();//获取更改内容
$("#"+editid).parent().html(editval); //将点击的td中原内容改为输入的新内容

var data = {"row.y_project_id":'￥{pid}'};
data["row.y_idea_name"] = editval;
if(editid){
data["row.id"] = editid.replace("edit_id","");
}else{
data["row.id"] = "";
}
$.savey("idea",data);
});
//绑定点击事件
$(".th-listclass").kq_bind("click",listfunc,{'title':"详细"});
var listfunc =function (){
var id = $(this).parent().attr("id");
id = id.replace("id","");
qiao.to("${base}/y/c/plan/"+id);
};
            </code></pre>
        </div>

        <div class="clearfix">
            <h4 id="bstree">bstree</h4>
            <@bstree t=tree edit=true/>
            <pre><code class="language-html" data-lang="html">                    @bstree t=tree edit=true
<b>java:</b>
                    List《Map》 l = new ArrayList《Map》();
                    for(int i=1;i<=5;i++){
                    Map a =new HashMap();
                    String id =i+"";
                    a.put("id",id);
                    a.put("pid",--i+"");
                    a.put("text","菜单"+id);
                    a.put("url","/"+id);
                    l.add(a);
                    i++;
                    }
                    setAttr("tree", new QTree1(0, "/", "根菜单",l, null));
            </code></pre>
        </div>
        <div class="clearfix">
            <h4 id="bstabs">bstabs</h4>
            <@bstabs lis=ltabs>
            <#if ltabs??>
                <#list ltabs as li>
                    <@bstab id=li.id num=li_index>${li.text}</@bstab>
                </#list>
            </#if>
            </@bstabs>

            <@bsverttabs lis=ltabs>
            <#if ltabs??>
                <#list ltabs as li>
                    <@bsverttab id=li.id num=li_index>${li.text}</@bsverttab>
                </#list>
            </#if>
            </@bsverttabs>

            <pre><code class="language-html" data-lang="html">
                ${StringUtil.toHtml('<@bstabs lis=ltabs>
            <#if ltabs??>
                <#list ltabs as li>
                    <@bstab id=li.id num=li_index> $ {li.text}</@bstab>
                </#list>
                </#if>
            </@bstabs>')}
            </code></pre>
        </div>
        <div class="clearfix">
            <h4 id="bootstap">bootstrap</h4>
            <a href="#">Inbox <span class="badge">42</span></a>

            <button class="btn btn-primary" type="button">
                Messages <span class="badge">4</span>
            </button>


            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default">
                    <div class="panel-heading" role="tab" id="headingOne">
                        <h4 class="panel-title">
                            <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                Collapsible Group Item #1
                            </a>
                        </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                        <div class="panel-body">
                            Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading" role="tab" id="headingTwo">
                        <h4 class="panel-title">
                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                                Collapsible Group Item #2
                            </a>
                        </h4>
                    </div>
                    <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                        <div class="panel-body">
                            Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading" role="tab" id="headingThree">
                        <h4 class="panel-title">
                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                                Collapsible Group Item #3
                            </a>
                        </h4>
                    </div>
                    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                        <div class="panel-body">
                            Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                        </div>
                    </div>
                </div>
            </div>

            <a href="javascript:void(0);" onclick="getData()">getdate</a>|
            <a href="javascript:void(0);" onclick="addData()">addData</a>|
            <a href="javascript:void(0);" onclick="hidepenal()">hidepenal</a>|
            <a href="javascript:void(0);" onclick="showpenal()">showpenal</a>|

            <pre><code class="language-html" data-lang="html">
                ${StringUtil.toHtml('<a href="#">Inbox <span class="badge">42</span></a>

<button class="btn btn-primary" type="button">
  Messages <span class="badge">4</span>
</button>

')}
            </code></pre>
        </div>
        <div class="clearfix">
            <h4 id="compend">compend</h4>
            <div class="col-xs-10 col-sm-9 col-md-6 col-lg-6">
                <@bsul lis=listmyul />
            </div>
            <div class="col-xs-10 col-sm-9 col-md-6 col-lg-6">
                <div class="panel-group" id="accordion1" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-default">
                        <div class="panel-heading" role="tab" id="headingOne1">
                            <h4 class="panel-title">
                                <a role="button" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne1" aria-expanded="true" aria-controls="collapseOne1">
                                    Collapsible Group Item #1
                                </a>
                            </h4>
                        </div>
                        <div id="collapseOne1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne1">
                            <div class="panel-body">
                                Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading" role="tab" id="headingTwo1">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion1" href="#collapseTwo1" aria-expanded="false" aria-controls="collapseTwo1">
                                    Collapsible Group Item #2
                                </a>
                            </h4>
                        </div>
                        <div id="collapseTwo1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo1">
                            <div class="panel-body">
                                Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading" role="tab" id="headingThree1">
                            <h4 class="panel-title">
                                <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion1" href="#collapseThree1" aria-expanded="false" aria-controls="collapseThree1">
                                    Collapsible Group Item #3
                                </a>
                            </h4>
                        </div>
                        <div id="collapseThree1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree1">
                            <div class="panel-body">
                                Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <pre><code class="language-html" data-lang="html">@bsul lis=listmyul  </code></pre>
        </div>

        <div class="clearfix">
        <h4 id="autocomplate">autocomplate</h4>

        </div>

        </div>
        <div class="col-xs-2 col-sm-3 col-md-3 col-lg-3">
            <div class="jumbotron" style="text-align:center;">
                <h1>QBlog</h1>

                <p style="margin:0;">
                    <a href="http://uikoo9.com/jfinalQ" target="_blank">jfinalQ</a> and <a
                        href="http://uikoo9.com/bootstrapQ" target="_blank">bootstrapQ</a> demo blog
                </p>
            </div>

            <div class="list-group" style="position:fixed;top:70px;margin-right:20px;" id="myNav">
                <#if blogTypeId??>
                    <a href="${base}/blog/list" class="list-group-item">所有文章</a>
                    <#else>
                        <a href="#" class="list-group-item active">导航</a>
                </#if>
                <#list blogTypes as type>
                    <a href="#${type.id}"
                       class="list-group-item <#if blogTypeId?? && blogTypeId == type.id>active</#if>">
                        ${type.blog_type_name}</a>
                </#list>
                <!--<a href="#bsnail" class="list-group-item  active">bsnail</a>-->

            </div>
            <@bsspy title='bsspy' lis=spy />
        </div>
    </div>
</div>

<script type="text/javascript">
    var lisort ={};// new BootstrapOrder();

    $(document).ready(function () {
        $("#myNav").affix({
            offset: {
                top: 125
            }
        });

        $('.panel-group').collapse({
            toggle: false
        })

//        lisort.toggleShow();
        var aa = {id: 1, name: '张三'+1, num: 10};
        var aa1 = {id: 2, name: '张三'+2, num: 20};
        var aa2 = {id: 3, name: '张三'+3, num: 30};
        /*lisort.addItem(aa);
        lisort.addItem(aa1);
        lisort.addItem(aa2);*/

        var emails = [
            { name: "Peter Pan", result: "peter@pan.de",value:"1" },
            { name: "Molly", result: "molly@yahoo.com" ,value:"2"},
            { name: "Forneria Marconi", result: "live@japan.jp" ,value:"3"},
            { name: "Master <em>Sync</em>", result: "205bw@samsung.com" ,value:"4"},
            { name: "Dr. <strong>Tech</strong> de Log", result: "g15@logitech.com",value:"5" },
            { name: "Don Corleone", result: "don@vegas.com" ,value:"6"},
            { name: "Mc Chick", result: "info@donalds.org" ,value:"17"},
            { name: "Donnie Darko", result: "dd@timeshift.info" ,value:"18"},
            { name: "Quake The Net", result: "webmaster@quakenet.org" ,value:"19"},
            { name: "Dr. Write", result: "write@writable.com" ,value:"10"}
        ];

        $("#blog_type_name").ci_autocomplate_cache("/y/c/autoteamcache",true);
//        $("#singleBirdRemote1").ci_autocomplate(emails);
        $("#yuser").ci_autocomplate_cache("/y/c/autousercache",true);

//        alert(ci.pinyin("实打实的"));
//        alert(typeof ci.pinyin("实打实的"));
//        alert(typeof  ci.pinyin("实打实的").toString());

    });

    var i = 2;
    function addData(){
        var aa = {id: i, name: '张三'+i, num: i};
        lisort.addItem(aa);
        i++;
    }
    function hidepenal(){
        lisort.hidePanel();
    }
    function showpenal(){
        lisort.showPanel();
    }
    function getData(){
        var data = lisort.getData();
        alert(JSON.stringify(data));
    }
</script>
<@backtotop/>
</@html>
